# setup_db.py
from app import app
from config import db

with app.app_context():
    db.create_all()
    print("数据库表已创建（如果不存在）")
